#include <string.h>

#include "census.h"

int isAnswer(const char * data, size_t size)
{
	int result = 0;
	if(size == strlen(CENSUS_ANSWER))
	{
		if(strcmp(data, CENSUS_ANSWER) == 0)
		{
			result = 1;
		}
	}
	return result;
}

int isRequest(const char * data, size_t size)
{
	int result = 0;
	if(size == strlen(CENSUS_REQUEST))
	{
		if(strcmp(data, CENSUS_REQUEST) == 0)
		{
			result = 1;
		}
	}
	return result;
}

